package com.cheng.operation.impl;

import com.cheng.common.exception.CommonException;
import com.cheng.data.entity.UserInfoEntity;
import com.cheng.data.vo.UserInfoVO;
import com.cheng.operation.IndexOperation;
import com.cheng.service.UserInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: ChengJW
 * @date: 2021/11/7 15:49
 * @version: 1.0
 * @description: index 页面的逻辑处理
 */
@Service
public class IndexOperationImpl implements IndexOperation {

    private final static Logger log = LoggerFactory.getLogger(IndexOperationImpl.class);

    @Autowired
    private UserInfoService userInfoService;

    /**
     * @author: ChengJW
     * @params: [userInfoEntity]
     * @return: com.cheng.data.vo.UserInfoVO
     * @date: 2021/11/7
     * @description: 查询 userInfo消息
     */
    @Override
    public UserInfoVO queryUserInfoByUserName(UserInfoEntity userInfoEntity) throws CommonException {
        return userInfoService.queryUserInfoByUserName(userInfoEntity);
    }
}
